'use strict';
const crypto = require("crypto");

module.exports = app => {
    const { STRING, INTEGER, DATE, ENUM } = app.Sequelize;
    // 配置（重要：一定要配置详细，一定要！！！）
    const BankConfig = app.model.define('bank-config', {
        id: {
            type: INTEGER(30).UNSIGNED,
            primaryKey: true,
            autoIncrement: true
          },
          title:{
            type: STRING(200),
            allowNull: false,
            defaultValue: '',
            comment: '标题',
          },
          logo:{
            type: STRING(300),
            allowNull: false,
            defaultValue: '',
            comment: 'logo',
          },
          bg_image:{
            type: STRING(300),
            allowNull: false,
            defaultValue: '',
            comment: '背景图片',
          },
          created_at: DATE,
          updated_at: DATE,
    });
   
    return BankConfig;
};